import request from '@/utils/request'

// 档案分类
export function getAllCategory(data) {
  return request({
    url: '/archCategory/getAllCategory',
    method: 'post',
    data
  })
}

export function addCategory(data) {
  return request({
    url: '/archCategory/addCategory',
    method: 'post',
    data
  })
}

export function updateCategory(data) {
  return request({
    url: '/archCategory/updateCategory',
    method: 'post',
    data
  })
}

// 获取档案分类的列表
export function getDeptWithCate(data) {
  return request({
    url: '/archDeptCategory/getDeptWithCate',
    method: 'post',
    data
  })
}

